import request from '@/utils/request'

// 查询实有单位列表
export function getSqUnitList(data) {
  return request({
    url: '/community-management/unit/getSqUnitList',
    method: 'post',
    data: data
  })
}
// 小区下拉框
export function getResidenceList() {
  return request({
    url: '/community-management/unit/residenceList',
    method: 'get'
  })
}
// 单位类型下拉框
export function getNameList() {
  return request({
    url: '/community-management/unit/nameList',
    method: 'get'
  })
}

// 添加实有力量
export function getAddSqUnit(data) {
  return request({
    url: '/community-management/unit/addSqUnit',
    method: 'post',
    data: data
  })
}
// 删除实有力量
export function getDelUnit(ids) {
  return request({
    url: '/community-management/unit/delUnit/' + ids,
    method: 'post',
    data: ids
  })
}
// 模板下载
export function getDownload() {
  return request({
    url: '/community-management/unit/download/template',
    method: 'get'
  })
}
// 导入
export function getImport() {
  return request({
    url: '/community-management/unit/import',
    method: 'post'
  })
}

// 导出
export function getExport() {
  return request({
    url: '/community-management/unit/export',
    method: 'post'
  })
}
